home *** CD-ROM | disk | FTP | other *** search
/ PC Home 109 / PC Home 109.iso / data1.cab / Program_Files / be004.dxr / 00010.ls < prev    next >
Encoding:
Text File  |  2001-03-02  |  2.1 KB  |  43 lines

  1. on exitFrame
  2.   if the visible of sprite 47 = 1 then
  3.     set randomiser to 1
  4.     set verty to 1
  5.   end if
  6.   set randomiser to random(2)
  7.   if randomiser = 1 then
  8.     set verty to 2
  9.   else
  10.     set verty to -2
  11.   end if
  12.   if the visible of sprite 48 = 1 then
  13.     set the locH of sprite 30 to the locH of sprite 30 + random(15)
  14.     set the locV of sprite 30 to the locV of sprite 30 + verty
  15.   else
  16.     set the locH of sprite 30 to the locH of sprite 30 - random(15)
  17.     set the locV of sprite 30 to the locV of sprite 30 + verty
  18.   end if
  19.   if (the locH of sprite 30 = 600) or (the locH of sprite 30 = 601) or (the locH of sprite 30 = 602) or (the locH of sprite 30 = 603) or (the locH of sprite 30 = 604) or (the locH of sprite 30 = 605) or (the locH of sprite 30 = 606) or (the locH of sprite 30 = 607) or (the locH of sprite 30 = 608) or (the locH of sprite 30 = 609) or (the locH of sprite 30 = 610) or (the locH of sprite 30 = 611) or (the locH of sprite 30 = 612) or (the locH of sprite 30 = 613) or (the locH of sprite 30 = 614) or (the locH of sprite 30 = 615) then
  20.     set the visible of sprite 48 to 0
  21.   end if
  22.   if (the locH of sprite 30 = 15) or (the locH of sprite 30 = 16) or (the locH of sprite 30 = 17) or (the locH of sprite 30 = 18) or (the locH of sprite 30 = 19) or (the locH of sprite 30 = 20) or (the locH of sprite 30 = 21) or (the locH of sprite 30 = 22) or (the locH of sprite 30 = 23) or (the locH of sprite 30 = 24) or (the locH of sprite 30 = 25) or (the locH of sprite 30 = 26) or (the locH of sprite 30 = 27) or (the locH of sprite 30 = 28) or (the locH of sprite 30 = 29) or (the locH of sprite 30 = 30) then
  23.     set the visible of sprite 48 to 1
  24.   end if
  25.   set the locV of sprite 30 to the locV of sprite 30 + random(5)
  26.   set the locV of sprite 30 to the locV of sprite 30 - random(5)
  27.   if sprite 30 intersects sprite(28) then
  28.     set the locV of sprite 30 to the locV of sprite 30 + 20
  29.   end if
  30.   if sprite 30 intersects sprite(27) then
  31.     set the locV of sprite 30 to the locV of sprite 30 - 20
  32.   end if
  33.   if the timer < 2100 then
  34.     go(the frame)
  35.   else
  36.     go(80)
  37.   end if
  38. end
  39.  
  40. on mouseUp
  41.   go(80)
  42. end
  43.